<%--
  Created by IntelliJ IDEA.
  User: Baggio
  Date: 2017-7-3
  Time: 11:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>

    <title>卡券列表</title>

</head>
<body>

<div class="page-container">
    <div class="text-c">
        <form action="/certificate/getCertificateList" method="post" id="searchForm">
            <input type="hidden" id="count" value="${pageinfo.total }"/>
            <input type="hidden" id="page" name="page" value="${pageinfo.pageNum }"/>
            <input type="hidden" id="pageSize" name="pageSize" value="${pageinfo.pageSize }"/>
        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20"><span class="l"> <a class="btn btn-primary radius"
                                                                onclick="picture_edit('新增使用范围','/certificate/getcertificateUsableRange?certificateTypeId=${map.typeId}','')"
                                                                href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 新增使用范围</a></span> <%--<span class="r">共有数据：<strong>54</strong> 条</span> --%>
    </div>
    <div class="mt-20 portfolio-content">
        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <th>卡劵类型</th>
                <th>卡劵使用范围</th>
                <th>使用机构</th>
                <th>状态</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${pageinfo.list}" var="item" varStatus="index">
                <tr class="text-c">
                    <td>${item.certificateTypeName}</td>
                    <td>${item.productEntityName}</td>
                    <td>${item.nickName}</td>
                    <td class="td-status">
                        <c:if test="${item.status==0}"><span class="label label-defaunt radius">无效</span></c:if>
                        <c:if test="${item.status==1}"><span class="label label-success radius">有效</span></c:if>

                    </td>
                    <td><fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm"/></td>

                    <td class="td-manage">
                        <a style="text-decoration:none" class="ml-5"
                           onClick="picture_edit('编辑使用范围','/certificate/getcertificateUsableRange?usableTid=${item.tid}','')"
                           href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
        <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
    </div>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="/static/lib/lightbox2/2.8.1/js/lightbox.min.js"></script>
<script type="text/javascript" src="/static/js/activity/getActivityList.js"></script>
<%@ include file="/common/include-footer.jsp" %>
</body>
</html>
